//
//  StatusNormalCell.swift
//  01-界面搭建
//
//  Created by Apple on 15/11/11.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit

class StatusNormalCell: StatusCell {
    
    override  var viewModel:StatusViewModel? {
        didSet{
            
            //配图行高
            pictureView.snp_updateConstraints { (make) -> Void in
                let offset = viewModel?.thumbnailsURL?.count > 0 ? StatusCellMargin : 0
                
                make.top.equalTo(contentLabel.snp_bottom).offset(offset)
                
                
                
            }
        }
    }
    override func setUpUI() {
        super.setUpUI()
        // 3> 配图视图
        pictureView.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(contentLabel.snp_bottom).offset(StatusCellMargin)
            make.left.equalTo(contentLabel.snp_left)
            make.width.equalTo(300)
            make.height.equalTo(90)

    }
}
}